﻿using System;

namespace Game.Common
{
    public interface IHasOwner
    {
        event EventHandler<HasOwnerEventArgs> PlayerChanged;
        
        GamePlayer Owner { get; set; }
    }
    
    public class HasOwnerEventArgs : EventArgs
    {
        readonly IHasOwner _HasOwner;

        public HasOwnerEventArgs(IHasOwner hasOwner)
        {
            _HasOwner = hasOwner;
        }

        public IHasOwner HasOwner
        {
            get { return _HasOwner; }
        }
    }
}
